<template>
  <h1>这是 Level2InjectDemo.vue 组件</h1>
  <h2> Level2InjectDemo.vue 监听消息：{{ message }}</h2>
  <Level3InjectDemo/>
</template>


<script setup>

import {inject} from "vue";
import Level3InjectDemo from "./Level3InjectDemo.vue";

const message = inject('msgKey');

</script>


<style scoped>

</style>